import Vue from 'vue'
import Router from 'vue-router'
import rank from '@/components/rank/rank'
import tab from '@/components/tab/tab'
import recommend from '@/components/recommend/recommend'
import search from '@/components/search/search'
import singer from '@/components/singer/singer'
Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    redirect: '/recommend'
  }, {
    path: '/rank',
    name: 'rank',
    component: rank
  }, {
    path: '/recommend',
    name: 'recommend',
    component: recommend
  }, {
    path: '/search',
    name: 'search',
    component: search
  }, {
    path: '/tab',
    name: 'tab',
    component: tab
  }, {
    path: '/singer',
    name: 'singer',
    component: singer
  }]
})
